package com.mall.course.course.service.impl;

import com.mall.course.course.domain.dto.CourseDto;
import com.mall.course.course.domain.vo.CourseVo;
import com.mall.course.course.mapper.CourseMapper;
import com.mall.course.course.service.IAppCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课程Service业务层处理
 * 
 * @author mall
 * @date 2024-05-17
 */
@Service
public class AppCourseServiceImpl implements IAppCourseService
{
    @Autowired
    private CourseMapper courseMapper;


    /**
     * 查询课程列表
     * 
     * @param courseDto 课程
     * @return 课程
     */
    @Override
    public List<CourseVo> selectCourseList(CourseDto courseDto)
    {
        return courseMapper.selectAppCourseList(courseDto.getSwimPlaceId());
    }


}
